<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="referrer" content="no-referrer">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>网络收藏夹|登录</title>
    <link rel="icon" href="favicon.ico" type="image/x-icon"/>
    <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/common.css">
    <link rel="stylesheet" href="css/login.css">
</head>
<body>
<blockquote class="layui-elem-quote loginTitle">网络收藏夹</blockquote>
<div class="bg" id="particles-js"></div>
<div class="layui-tab layui-tab-brief loginDiv">
    <ul class="layui-tab-title">
        <li class="layui-this">登录</li>
        <li>注册</li>
        <li>忘记密码</li>
    </ul>
    <div class="layui-tab-content">
        <div class="layui-tab-item layui-show">
            <!-- 登录表单 -->
            <form class="layui-form" action="" id="loginForm">
                <input type="hidden" name="sid" id="sid">
                <div class="layui-form-item">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-block">
                        <input type="text" name="username" required lay-verify="required" placeholder="请输入用户名"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">密码</label>
                    <div class="layui-input-block">
                        <input type="password" name="password" required lay-verify="required" placeholder="请输入密码"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">验证码</label>
                    <div class="layui-input-block">
                        <input type="text" name="code" id="code" required lay-verify="required" placeholder="请输入验证码"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <input type="checkbox" name="remember" value="1" title="两周内自动登录" lay-skin="primary">
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="login">登录</button>
                    </div>
                </div>
            </form>
            <div id="qrcodeDiv" style="display:none;">
                <div style="text-align: center;">请使用手机扫一扫登录
                    <span id="refreshCode">刷新
                        <i class="layui-icon layui-icon-refresh-3" style="font-size: 14px;"></i>
                    </span>
                </div>
                <div id="qrcode"></div>
            </div>
            <form class="layui-form" action="" style="display:none;" id="emailLogin">
                <div class="layui-form-item">
                    <label class="layui-form-label">邮箱账号</label>
                    <div class="layui-input-block">
                        <input type="email" name="email" id="login-email" required lay-verify="required|email"
                               placeholder="输入您的邮箱" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">验证码</label>
                    <div class="layui-input-inline" style="width:150px;">
                        <input type="text" name="code" required lay-verify="required" placeholder="请输入验证码"
                               autocomplete="off" class="layui-input">
                    </div>
                    <input type="button" class="layui-btn layui-btn-sm" style="margin-top:4px;width: 90px;"
                           onclick="sendLoginEmailCode(this)" value="获取验证码">
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="emailLogin">登录</button>
                    </div>
                </div>
            </form>
            <div style="padding-left: 14px;padding-top: 10px;">
                <span class="layui-breadcrumb" lay-separator="|">
                  <a href="javascript:;" onclick="emailLogin(this)">邮箱登录</a>
                  <a href="javascript:;" onclick="qrcodeLogin(this)">扫码登录</a>
                </span>
                <span class="layui-breadcrumb" style="display:none;">
                  <a href="javascript:;" onclick="changeLogin(this)">
                      <i class="layui-icon layui-icon-left" style="font-size: 14px;margin-right: 2px;"></i>切换其他登录方式
                  </a>
                </span>
            </div>
        </div>
        <div class="layui-tab-item">
            <!-- 注册表单 -->
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-block">
                        <input type="text" name="username" required lay-verify="required|username"
                               placeholder="输入6~18个字符，字母、数字、下划线"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">设置密码</label>
                    <div class="layui-input-block">
                        <input type="password" name="password" id="password" required lay-verify="required|password"
                               placeholder="输入6~16个字符，区分大小写"
                               autocomplete="off"
                               class="layui-input">
                        <div id="pwdValid" class="pwdValid">
                            <em class="prev">密码强度：</em>
                            <span></span>
                            <span></span>
                            <span></span>
                            <em class="name">低</em>
                        </div>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">邮箱</label>
                    <div class="layui-input-block">
                        <input type="email" name="email" id="register-email" required
                               lay-verify="required|email|exitEmail"
                               placeholder="输入您的邮箱" autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">验证码</label>
                    <div class="layui-input-inline" style="width:150px;">
                        <input type="text" name="code" required lay-verify="required" placeholder="请输入验证码"
                               autocomplete="off" class="layui-input">
                    </div>
                    <input type="button" class="layui-btn layui-btn-sm" style="margin-top:4px;width: 90px;"
                           onclick="sendEmailCode(this)" value="获取验证码">
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="register">注册</button>
                    </div>
                </div>
            </form>
        </div>
        <div class="layui-tab-item">
            <!-- 忘记密码 -->
            <form class="layui-form" action="">
                <div class="layui-form-item">
                    <label class="layui-form-label">用户名</label>
                    <div class="layui-input-block">
                        <input type="text" name="username" required lay-verify="required"
                               placeholder="请输入用户名"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">注册邮箱</label>
                    <div class="layui-input-block">
                        <input type="email" name="email" id="forgot-email" required lay-verify="required|email"
                               placeholder="请输入注册邮箱"
                               autocomplete="off"
                               class="layui-input">
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">验证码</label>
                    <div class="layui-input-inline" style="width:150px;">
                        <input type="text" name="code" required lay-verify="required" placeholder="请输入验证码"
                               autocomplete="off" class="layui-input">
                    </div>
                    <input type="button" class="layui-btn layui-btn-sm" style="margin-top:4px;width: 90px;"
                           onclick="sendForgotEmailCode(this)" value="获取验证码">
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn layui-btn-fluid" lay-submit lay-filter="forgotPwd">提交</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<div class="loginFooter">
    © 2020 网络收藏夹 || 网络收藏夹版权所有
</div>
<script src="js/jquery-3.1.1.min.js"></script>
<script src="js/config.js"></script>
<script src="js/common.js"></script>
<script src="layui/layui.js"></script>
<script src="plugin/particles.min.js"></script>
<script src="plugin/qrcode.min.js"></script>
<script src="plugin/md5.min.js"></script>
<script src="js/login.js"></script>
</body>
</html>